<%--
  Created by IntelliJ IDEA.
  User: 唐佳林
  Date: 2025/3/18
  Time: 15:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<html>
<head>
    <title>学生列表</title>
    <style>
        table, th, td {
            border: 1px solid black;
            border-collapse: collapse; /* 合并边框 */
        }
        th, td {
            padding: 8px; /* 单元格内边距 */
            text-align: center; /* 文本居中 */
        }
    </style>
</head>
<body>

<table>
    <thead>
    <tr>
        <th>ID</th>
        <th>学号</th>
        <th>姓名</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${students}" var="st">
        <tr>
            <td>${st.id}</td>
            <td>${st.num}</td>
            <td>${st.name}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>